package uk.ac.bath.base;
import uk.ac.bath.base.Cell;
import java.util.*;

public class CellGenerationComparator implements Comparator {
    public int compare(Object a1,Object b1) {
	Cell a = (Cell)a1;
	Cell b = (Cell)b1;
	if ( a.generation > b.generation ) return 1;
	if ( a.generation < b.generation ) return -1;
	return 0;
    }
}
